package com.myproject.music.domain;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

public class Order {
    @ApiModelProperty("专辑id")
    private Long id;

    @ApiModelProperty("专辑名")
    @NotBlank(message = "专辑名不能为空")
    @Size(min = 1, max = 10, message = "歌手名字必须在1到10个字符之间")
    private String orderName;


    @ApiModelProperty
    private String price;

    @ApiModelProperty
    private String creator;
    @ApiModelProperty
    private Date orderTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }
}
